For the following program, I'd like to make sure the user input is between 1 and 40 characters. To do this, how would I complete the if statement below?
Thank you.
Code:char p_input[41]; printf("Enter a name (1-40 characters):"); fgets(p_input, 41, stdin); if (p_input ....??